﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace ProMvc.Controllers
{
    public class BaseController:IController
    {
        public void Execute(RequestContext requestContext)
        {
            string controller = requestContext.RouteData.Values["controller"] as string;
            string action = requestContext.RouteData.Values["action"] as string;

            requestContext.HttpContext.Response.Write(string.Format("controller:{0},action:{1}",controller,action));
        }

        //public ActionResult Index()
        //{
        //   // return View();
        //}
    }
}